<?php
/*
 * @Creator: 小傲
 * @Date: 2023-04-07 14:41:03
 */
namespace app\admin\validate;

use think\Validate;

class Truck extends Validate
{
    protected $rule =   [
        'company_name'  => 'require',   
        'type' => 'require',	
        'contact' => 'require',	
        'phone' => 'require',	
        'truck_img' => 'require',	
    ];
    
    protected $message  =   [
        'company_name.require' => '运输公司名称不能为空',
        'type.require' => '货车种类不能为空',
		'contact.require' => '联系人不能为空',
		'phone.require' => '联系电话不能为空',
		'truck_img.require' => '车辆图片不能为空',
    ];  
}